﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Monopoly.Domain
{
    public class Dice
    {
        private static short Identity = 1;
        private short Id;
        private short Value;

        public Dice(Random Random)
        {
            this.Id = Identity++;
            ThrowDice(Random);
        }

        public void ThrowDice(Random Random)
        {
            this.Value = (short)Random.Next(1, 6+1);
        }

        public short GetValue()
        {
            return this.Value;
        }

        public static void ReinitializeIdentity()
        {
            Identity = 1;
        }
    }
}
